package com.bole.feign.reception;


import com.bole.data.Result;
import com.bole.dto.user.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("bolecar-reception-service")
public interface UserServiceFeign {

    @GetMapping("/login/getUserByTelephone")
     Result getUserByTelephone( @RequestParam("telephone") String telephone);

    @PostMapping("/login/saveUserInfo")
    void saveUserInfo( @RequestBody UserDto userDto);

    @PostMapping("/login/selectUserByTelephone")
    UserDto selectUserByTelephone(@RequestParam("id")Long id);

    @PostMapping("/login/addUserInfo")
    void addUserInfo(@RequestBody UserDto userDto);

    @GetMapping("/user/{telePhone}")
    UserDto getUserByTelePhone(@PathVariable("telePhone") String telePhone);

}
